package cn.edu.tju.se.base.service;

import java.io.IOException;
import java.util.Properties;

/**
 * Created by dell on 2016/5/10.
 */
public class ReadProperties{
    public String getUploadPath() {
        Properties prop = new Properties();
        String uploadPth = null;
        try {
            prop.load(ReadProperties.class.getClassLoader().getResourceAsStream("config/uploadpath.properties"));
            uploadPth = prop.getProperty("imagesuploadpath");
        } catch(IOException e) {
            e.printStackTrace();
        }
        return uploadPth;
    }
}
